<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:p="http://primefaces.org/ui"> 

<h:head><title>TravelDream</title>
	<link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'/>
</h:head> 
<body> 

	
	<h:outputStylesheet library="css" name="primefaces-style.css"/>

	<p:panel header="Admin Console">
		<h:panelGrid columns="10" cellpadding="3">
			<h:link outcome="homePage" value="Admin Console"/>
			
			 <h:link outcome="createTravelPackage" value="new package" />  
			  
			  <h:link outcome="newFlight" value="new flight"/>
			  
			  <h:link outcome="newHotel" value="new hotel"/> 
			  
			  <h:outputText value="new excursion" />
			  
			  <h:link outcome="showAllPackages" value="show all packages" /> 
			 
			  <h:link outcome="showAllHotels" value="show All Hotels"/> 
			   
			  <h:link outcome="showAllFlights" value="show All flights"/>
			   
			  <h:link outcome="showExcursion" value="show excursions"/> 
			  
			  <h:link outcome="manageCity" value="manage city"/>
			  
	 
			  <h:form>
				<p:commandButton id="logoutButton" value="logout" action="#{logout.logout()}"/>
			</h:form>
		</h:panelGrid>
	</p:panel>
	
	<p:panel header="New Excursion" styleClass="green-header">  
       	<h:form>
       	<h:panelGrid columns="3" cellpadding="0">  
		  
		
			
			<h:outputText value="#{excursion.currentExcursion.id}" />
			<h:outputText value="#{excursion.errorId}" />
							
			<p:outputLabel for="excursionName" value="Name" />
			<p:inputText id="excursionName" value="#{excursion.currentExcursion.name}" />
			<h:outputText value="#{excursion.errorName}" />

			
			<p:outputLabel for="description" value="Description" />
			<p:inputTextarea rows="8" cols="40" id="description" value="#{excursion.currentExcursion.description}" />
			<h:outputText value="#{excursion.errorDescription}" />
			
			<p:outputLabel for="price" value="Price" />
			<p:inputText id="price" value="#{excursion.currentExcursion.price}" />
			<h:outputText value="#{excursion.errorPrice}" />
			
			<p:commandButton value="add" action="#{excursion.addExcursion()}" ajax="false"/>  
			<h:outputText value="#{excursion.confirmCreation}" />
	
	</h:panelGrid>
	</h:form>     
   </p:panel> 
</body> 
</html>
